<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../lib/vue.js"></script>
  </head>
  <body>
    <div id="app">
      类别：<input v-model="type" />
      <div v-if="type==='A'">优秀</div>
      <div v-else-if="type==='B'">良好</div>
      <div v-else-if="type==='C'">合格</div>
      <div v-else="type==='D'">不合格</div>
    </div>
    <script>
      let vm = new Vue({
        el: '#app',
        data: {
          type: '',
        },
      })
    </script>
  </body>
</html>
